php forum
php mysql forum
php mysql smarty
 
Topic Options
#224545 - 09/12/02 07:43 PM [6.0.x / 6.1.x] Show User Groups v1.1
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
Mod Name / Version - Show User Groups v1.1<br /><br />Description - Adds a column to the User List (showmembers.php page) which will list the board groups each registered user is in. Groups can be hidden or shown with custom names.<br /><br />Example - http://www.newoutriders.org/ubbtest Login: test Password: test<br /><br />Pre-requisites - none<br /><br />Author - Aglavalin, aka Steve Stout<br /><br />Files Altered - showmembers.php, showmembers.tmpl, /languages/english/showmembers.php<br /><br />Database Altered - no <br /><br />New Files - none <br /><br />Note: This is a simple hack. Works fine on 6.0.x and 6.1<br /><br /><br />Slightly updated from v1.0 with corrected directions.


Attachments
56539-ShowUserGroups_v1.1.txt (48 downloads)


Top
#224546 - 09/28/02 12:36 AM Re: Mod Name / Version - Show User Groups v1.1 [Re: neuron]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Hmm... I've installed it, but do not see anything showing up <img src="/forum/images/graemlins/frown.gif" alt="" />

Top
#224547 - 09/28/02 01:19 PM Re: Mod Name / Version - Show User Groups v1.1 [Re: neuron]
Lisa_P Offline
Enthusiast

Registered: 03/09/02
Posts: 329
Loc: Michigan, USA
This is working for me (and was fairly simple to install -- I was worried about putting in all the different groups). <img src="/forum/images/graemlins/smile.gif" alt="" /> The only problem is that the groups are being listed one after the other, like this:<br /><br /><pre><font class="small">code:</font><hr><br />Group:<br /><br />Group A Group B<br />Group C Group D<br /></pre><hr><br /><br />and it seems like it would look better if it went:<br /><pre><font class="small">code:</font><hr><br />Group:<br /><br />Group A<br />Group B<br />Group C<br /></pre><hr><br /><br />Can I get it to go to the next line after each group is listed, or would it just be too difficult?
_________________________
[:"red"]Lisa[/]

Top
#224548 - 09/28/02 01:32 PM Re: Mod Name / Version - Show User Groups v1.1 [Re: JacquiL]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Lisa,<br /><br />I'm not 100% sure... I don't have this installed, but I looked at it.<br /><br />I wonder if changing this:<br /><pre><font class="small">code:</font><hr><br /><br /><br />// Show User Groups Hack<br /> $userrow[$i]['Group'] = $Groups;<br /> $userrow[$i]['Group'] = str_replace("0","",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("1","Administrators",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("2","Moderators",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("3","Users",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("4","Guests",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("-"," ",$userrow[$i]['Group']);<br />// end Show User Groups Hack</pre><hr><br /><br />to this:<br /><pre><font class="small">code:</font><hr><br /><br /><br />// Show User Groups Hack<br /> $userrow[$i]['Group'] = $Groups;<br /> $userrow[$i]['Group'] = str_replace("0","",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("1","Administrators <br />",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("2","Moderators<br />",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("3","Users<br />",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("4","Guests<br />",$userrow[$i]['Group']);<br /> $userrow[$i]['Group'] = str_replace("-"," ",$userrow[$i]['Group']);<br />// end Show User Groups Hack</pre><hr><br /><br />I think that might do the trick.<br /><br />Don't shoot me if it doesn't though. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#224549 - 09/28/02 02:15 PM Re: Mod Name / Version - Show User Groups v1.1 [Re: Daine]
Lisa_P Offline
Enthusiast

Registered: 03/09/02
Posts: 329
Loc: Michigan, USA
<img src="/forum/images/graemlins/mad.gif" alt="" /> Oh great, now it's all broke!<br /><br /> <img src="/forum/images/graemlins/tongue.gif" alt="" /> Ok, not quite. <img src="/forum/images/graemlins/wink.gif" alt="" /> It made it print "Users <br /> instead of "Users". <img src="/forum/images/graemlins/laugh.gif" alt="" /> I appreciate the effort though. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
[:"red"]Lisa[/]

Top
#224550 - 09/28/02 02:25 PM Re: Mod Name / Version - Show User Groups v1.1 [Re: JacquiL]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
<img src="/forum/images/graemlins/confused.gif" alt="" /><br /><br />Whoops! <img src="/forum/images/graemlins/tongue.gif" alt="" /> Sorry. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#224551 - 09/28/02 02:28 PM Re: Mod Name / Version - Show User Groups v1.1 [Re: Daine]
Lisa_P Offline
Enthusiast

Registered: 03/09/02
Posts: 329
Loc: Michigan, USA
It's just the test site, no users. No permanent harm done. <img src="/forum/images/graemlins/laugh.gif" alt="" />
_________________________
[:"red"]Lisa[/]

Top
#224552 - 09/28/02 03:48 PM Re: Mod Name / Version - Show User Groups v1.1 [Re: JacquiL]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Mine is still broke.. and my User List now gives parse errors <img src="/forum/images/graemlins/frown.gif" alt="" />

Top
#224553 - 09/28/02 07:03 PM Re: Mod Name / Version - Show User Groups v1.1 [Re: palmen]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
Lisa, ya might be able to get it to work by controlling the width of that column.<br /><br />msula, what errors are you getting exactly?

Top
#224554 - 09/28/02 07:05 PM Re: Mod Name / Version - Show User Groups v1.1 [Re: neuron]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
None now. Lisa sent a copy of her showmembers file, and I saw I was missing just one tiny little thing <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />The only thing is, I installed this hack thinking it was something different. I thought this was the hack that displayed the group under their name and above their avatar in the post list? Did you do that hack or did someone else? That is what I'm really looking for. <br /><br />Thanks.

Top
#224555 - 09/28/02 07:10 PM Re: Mod Name / Version - Show User Groups v1.1 [Re: palmen]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
Yeah I did that one too, it can be found here.

Top
#224556 - 09/28/02 07:34 PM Re: Mod Name / Version - Show User Groups v1.1 [Re: neuron]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Thanks. Although, that one is not working <img src="/forum/images/graemlins/confused.gif" alt="" /> Have it set up.. just nothing is showing under the names.

Top
#224557 - 09/29/02 12:30 AM Re: Mod Name / Version - Show User Groups v1.1 [Re: palmen]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
Sounds like maybe you did not add in the group name, or the group number corectly maybe?

Top
#224558 - 09/29/02 08:40 AM Re: Mod Name / Version - Show User Groups v1.1 [Re: neuron]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
I will take my trouble shooting to the appropriate thread, thanks!

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks